#include "stdafx.h"
#include "CustomCombatDef.h"
#include "InstanceTouch.h"
DECL_INSTANCE_TOUCH(ETouch_CustomCombatDef);

struct  CustomCombatDefDefReflectionRegister
{
	CustomCombatDefDefReflectionRegister()
	{
		REGISTER_REFLECTION_MEMBER(CustomCombatDef,m_iID,INVALID_ID).Editor_SetAsPrimaryKey();
		REGISTER_REFLECTION_MEMBER(CustomCombatDef,m_sDisplayName,std::string("DefaultName")).Editor_SetAsDisplayName();
		REGISTER_REFLECTION_MEMBER(CustomCombatDef,m_bRandom,false).Editor_SetAsRaw();
		REGISTER_REFLECTION_MEMBER(CustomCombatDef,m_bAutoRun,false).Editor_SetAsRaw();
		REGISTER_REFLECTION_MEMBER(CustomCombatDef,m_bCanSkip,true).Editor_SetAsRaw();
		REGISTER_REFLECTION_MEMBER(CustomCombatDef,m_iPlayer0Data,INVALID_ID).Editor_SetAsForeignKey(eDefGroup_Default,eDefaultDef_CombatDataDef);
		REGISTER_REFLECTION_MEMBER(CustomCombatDef,m_iPlayer1Data,INVALID_ID).Editor_SetAsForeignKey(eDefGroup_Default,eDefaultDef_CombatDataDef);
		REGISTER_REFLECTION_MEMBER(CustomCombatDef,m_eStartOrder,EStartOrderMode_ByCombatPower).Editor_SetAsEnumation<EStartOrderMode>();

		GlobalClassManager::Instance().RegisterClass(CustomCombatDef::s_GetReflection(),eDefaultDef_CustomCombatDef);
		GlobalDefManager::Instance().RegisterDefManger(&CustomCombatDefManager::Instance());

	}
}___CustomCombatDefDefReflectionRegister;

rewrite  void CustomCombatDef::OnArchieveReaded()
{
}

void CustomCombatDefManager::OnArchieveReaded()
{
	__CustomCombatDefManager::OnArchieveReaded();
}